﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using XXF.BaseService.ServiceCenter.SystemRuntime;

namespace Dyd.BaseService.ServiceCenter.Test.Client
{
    public partial class FormServerRegister : Form
    {
        public FormServerRegister()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SystemConfigHelper.ZooKeeperServer = "192.168.17.54:2181";
            System.Threading.CancellationTokenSource source = new System.Threading.CancellationTokenSource();
            //XXF.BaseService.ServiceCenter.ZK.ZKNodeRegister r = new XXF.BaseService.ServiceCenter.ZK.ZKNodeRegister();
            //r.Register(source, 1, 1);
            //System.Threading.Tasks.Task.Factory.StartNew(()=>{
               
            //    while (true)
            //    {
                   
            //        System.Threading.Thread.Sleep(1000);
            //    }
            //});

        }
    }
}
